package com.highSpeed.entities;


import org.bson.types.ObjectId;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Id;

/**
 * Created by chenhong on 2017/2/27.
 */
@Entity(value = "qa", noClassnameStored = true)
public class QAEntity {
    @Id
    protected String id;
    String answer;

    public QAEntity() {
        super();
    }

    public QAEntity(String question,String answer){
        this.id=question;
        this.answer=answer;
    }

    public String getQuestion(){return id;}

//    public void setQuestion(String question){this.id=question;}

    public String getAnswer(){return answer;}

    public void setAnswer(String answer){this.answer=answer;}

}
